home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / MailEnclosure / Source.v0.15 / EmacsText.h < prev    next >
Text File  |  1995-06-12  |  789b  |  39 lines

  1. /* EmacsText.h
  2.  *
  3.  * You may freely copy, distribute, and reuse the code in this example.
  4.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  5.  * fitness for any particular use.
  6.  *
  7.  * Written by:  Julie Zelenski
  8.  * Created:  Sept/91
  9.  */
  10.  
  11. #import <appkit/appkit.h>
  12.  
  13.  
  14. @interface EmacsText:Text
  15. {
  16. }
  17.  
  18. - initFrame:(const NXRect *)fRect;
  19.  
  20. - (int)perform:(SEL)selector withSel:(SEL)helper;
  21.  
  22. - (int)positionForLineBegin;
  23. - (int)positionForLineEnd;
  24. - (int)positionForWordBegin;
  25. - (int)positionForWordEnd;
  26. - (int)positionForDocumentBegin;
  27. - (int)positionForDocumentEnd;
  28. - (int)nextPositionIfEmpty;
  29.  
  30. - moveToPosition:(SEL)command;
  31. - deleteToPosition:(SEL)command;
  32. - delete:(int)start :(int)end;
  33. - yank;
  34.  
  35. - (BOOL) emacsEvent:(NXEvent *)event;
  36. - keyDown:(NXEvent *)event;
  37.  
  38. @end
  39.